<?php include $this->tpl('public:common.php') ?>
<div class="well">
    <ul class="nav nav-tabs">
      <li class="active"><a href="#home" data-toggle="tab">请填写功能资料</a></li>
    </ul>	
	
	<div id="myTabContent" class="tab-content">
		  <div class="tab-pane active in" id="home">

           <form id="tab" method="post" action="">
				<label>名称</label>
				<input type="text" name="menu_name" value="<?=post('menu_name')?>" class="input-xlarge" required="true" autofocus="true">
				<label>链接 <span class="label label-important">不可重复，以/开头的相对路径或者http网址</span></label>
				<input type="text" name="menu_url" value="<?=post('menu_url')?>" class="input-xlarge" placeholder="/os/index"  required="true" >
				<label>所属模块</label>
				<select name="module_id" id="DropDownTimezone" class="input-xlarge">
					<?php $i=$j=0; foreach ($module_options_list as $_val => $_name):?>
						<option value="<?=$_val?>" class="input-xlarge option"><?=$_name?></option>
					<?php endforeach?>
				</select>
				<label>是否左侧菜单栏显示</label>
				<select name="is_show" class="input-xlarge" >
					<option value="1" selected >是</option>
					<option value="0">否</option>
				</select>
				
				<label>所属菜单</label>
				<select name="father_menu" id="DropDownTimezone" class="input-xlarge">
					<?php $i=$j=0; foreach ($father_menu_options_list as $_group => $_item):?>
						<?php if(!is_array($_item)):?>
							<option value="<?=$_group?>" class="input-xlarge option"><?=$_item?></option>
					    <?php else:?>
							<optgroup label="<?=$_group?>">
							<?php $i++; foreach($_item as $_val=>$_name):?>
								<option value="<?=$_val?>" class="input-xlarge option" id="DropDownTimezone-<?=$i?>-<?=$j++?>"><?=$_name?></option>
							<?php endforeach?>
							</optgroup>
					    <?php endif?>
					<?php endforeach?>
				</select>
				
				<label>是否允许快捷菜单 <span class="label label-important">修改/ 删除类链接不允许</span></label>
				<select name="shortcut_allowed" class="input-xlarge" >
					<option value="1" selected>是</option>
					<option value="0">否</option>
				</select>				
				<label>描述</label>
				<textarea name="menu_desc" rows="3" class="input-xlarge"><?=post('module_desc')?></textarea>
				<div class="btn-toolbar">
					<button type="submit" class="btn btn-primary"><strong>提交</strong></button>
				</div>
			</form>
        </div>
    </div>
</div>
<?php include $this->tpl('public:footer.php') ?>